package com.bgds.sys.api.bean.mars.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author: warm
 * @Description:
 * @Date: 2020/7/27 15:59
 * @Version: 1.0
 */
@ApiModel("节点指标历史返回对象")
@Data
public class TrendDataDto {
    @ApiModelProperty("值")
    private Object value;
    @ApiModelProperty("报警等级")
    @JsonProperty(value = "alarm_level")
    private Integer alarmLevel;
    @ApiModelProperty("采样时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
    @ApiModelProperty("数据质量 0：正常，1：错误")
    private Integer quality;
}